package com.cxria.shiro.repository;

import com.cxria.shiro.entity.Permission;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface PermissionRepository extends BaseRepository<Permission, Long> {

	@Query("select o from Permission o where o.permissionName = :permissionName and o.remove = false")
    Permission findByPermissionName(@Param(value = "permissionName") String permissionName);
	
}
